package com.yaya.spring.db.jdbc;

import com.yaya.spring.db.AccountDao;
import org.springframework.jdbc.core.JdbcTemplate;


public class JdbcTemplateDao implements AccountDao {
	private JdbcTemplate jdbcTemplate;

	public void update(int id, int balance) {
		String updateSql = "update WORKER_INFO set ID_CARD_FORWARD_PIC = ? where worker_id = ?";
		jdbcTemplate.update(updateSql,id,balance);
	}
	
	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	
    
}
